<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="../skin/style.css" rel="stylesheet" type="text/css" />
<link href="{SKIN_PATH}modal.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>

<script type="text/javascript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
	
    
    <div class="main">
		
		<div class="mod">
			<div class="head">最近登录</div>
            <div class="body">
            
            <div class="well">
            	{php $query = $db->query("select userid from table_member")}
                    <h3>已有{php echo $db->num_rows($query)}位会员</h3>
                <a href="{url("?module=$module&action=$action")}" class="button"><i class="icon-refresh"></i>换一组</a>
            </div>
                
            <div class="row">
                {php unset($r);}
                 {php $sql = "SELECT * FROM `".DB_PRE."member` WHERE modelid='10' AND disabled=0 ORDER BY rand() DESC, lastlogintime desc "}
                 {get sql="$sql" rows="40" page="$page"}
                <div class="span1">
                 <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),48,48)}" alt="{$r[username]}"  target="_blank" width="48" height="48"/></a>
                 <br/><a href="{url("?module=space&userid=$r[userid]")}">{$r[username]}</a>
                 {if $r[areaid]}
                 <br/>({areaname($r[areaid])})
                 {/if}
                 <br/><a href="?module=space&file=fans&action=add&userid={$r[userid]}"><i class="icon-plus"></i>关注TA</a>
                 <br/><a href="?module=message&action=send&userid={$r[userid]}"><i class="icon-envelope"></i>发信息</a>
                 <br/><a href="{url("?module=space&userid=$r[userid]")}"><i class="icon-home"></i>TA主页</a>
                 <p>&nbsp;</p>
                </div>
              {/get}
           </div>   
              
          </div>
		</div> 
        
        
        
			
		 <div class="pagination">{$pages}</div>
		 
	</div>
    
    <div class="aside">
    	
        <div class="mod">
            <div class="head">最新注册</div>
            <div class="body">
                <ul class="body users">
                {php unset($r);}
                 {php $sql = "SELECT * FROM `".DB_PRE."member` WHERE modelid='10' AND disabled=0 ORDER BY regtime DESC "}
                 {get sql="$sql" rows="5" page="$page"}
                <li {if $n%9==1} class="clear" {/if}>
                 <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),40,40)}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
                 <br/><a href="{url("?module=space&userid=$r[userid]")}">{$r[username]}</a>
                 <br/>{date('Y-m-d',$r[regtime])}
                 <!--<br/>所在地区： {$AREA[$r[areaid]][name]}
                 <br/>用户组：{$GROUP[$r[groupid]]}
                 <br/>最后登录时间：{if $r[lastlogintime]}{date('Y-m-d', $r[lastlogintime])}{/if}
                 <br/>联系方式：<em>{$r[email]}</em>
                 <br/>个人空间：<a href="{url("?module=space&userid=$r[userid]")}" class="green">{url("?module=space&userid=$r[userid]")}</a>-->
                </li>
              {/get}
              </ul>
            </div>
        </div> 
    </div>
</div>

 
{template 'footer.html'}
